<?php echo $this->fetch('header.html'); ?>
<div>
<ul class="nav nav-tabs">
	<li><a href="<?php echo $this->_var['appadmin']; ?>?m=recharge">充值记录</a></li>
    <li><a href="<?php echo $this->_var['appadmin']; ?>?m=recharge&a=man">人工充值</a></li>
</ul>

 <?php $this->assign("pay_type",M("recharge")->pay_type()); ?>
              
                <table  class="table table-bordered">
                  <thead> 
                  <tr align="center">
                    <td width="15%">订单号</td>
                    <td>用户</td>
                    <td width="10%">交易金额</td>
                    <td width="10%">充值类型</td>
                    
                    <td width="10%">交易状态</td>
                    <td width="18%">交易时间</td>
                    <td>内容</td>
                  </tr>
                  </thead>
                  <tbody>
                  <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
                  <tr align="center">
                    <td><?php echo $this->_var['c']['orderno']; ?></td>
                    <td><?php echo $this->_var['c']['userid']; ?>:<?php echo $this->_var['c']['nickname']; ?></td>
                    <td><?php echo $this->_var['c']['money']; ?></td>
                    <td><?php echo $this->_var['pay_type'][$this->_var['c']['pay_type']]; ?></td>
                     
                    <td><?php if ($this->_var['c']['status'] == 1): ?>成功<?php else: ?>失败<?php endif; ?></td>
                    <td><?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></td>
                    <td><?php echo $this->_var['c']['orderinfo']; ?></td>
                  </tr>
                  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                
                </tbody></table>
                <div class="pages"><?php echo $this->_var['pagelist']; ?></div>
             
            
</div>
<?php echo $this->fetch('footer.html'); ?>